import request from '@/utils/request'

// 应用授权
const URL_PREFIX = '/client/allow'

/**
 * 获取列表
 */
export function getList(params) {
  return request({
    url: URL_PREFIX + '/getList',
    method: 'GET',
    params
  })
}

/**
 * 保存
 */
export function change(clientId, data) {
  return request({
    url: URL_PREFIX + `/${clientId}`,
    method: 'POST',
    data
  })
}
